<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
  
  <xsl:variable name="configUri" select="'/localhost/system/config.xml'"/>
  <xsl:variable name="configDefaultUri" select="'/livcos.org/sys/config_default.xml'"/>
  <xsl:variable name="config">
    <xsl:choose>
      <xsl:when test="doc-available($configUri)">
        <xsl:copy-of select="doc($configUri)/*/*"/>
      </xsl:when>
      <xsl:otherwise>
        <xsl:copy-of select="doc($configDefaultUri)/*/*"/>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:variable>
  
</xsl:stylesheet>
